package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/5/28
 * Description :
 */
public class ApiUpdatePwd extends ApiBaseParamAbstract {
    public ApiUpdatePwd(String code, String password, String rePassword, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("code", code);
        mParams.put("password", password);
        mParams.put("trPassword", rePassword);
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getUpdatePwd(mParams);
    }
}
